@@ -42,7 +42,6 @@ export default class DashboardSettings extends DashboardView {
42
42
passwordInput : '' ,
43
43
passwordHidden : true ,
44
44
migrationLoading : false ,
45
- hasServerViews : false ,
46
45
storagePreference : 'local' , // Will be updated in componentDidMount
47
46
copyData : {
48
47
data : '' ,
@@ -64,7 +63,6 @@ export default class DashboardSettings extends DashboardView {
64
63
initializeViewPreferencesManager ( ) {
65
64
if ( this . context ) {
66
65
this . viewPreferencesManager = new ViewPreferencesManager ( this . context ) ;
67
- this . checkServerViews ( ) ;
68
66
this . loadStoragePreference ( ) ;
69
67
}
70
68
}
@@ -86,17 +84,6 @@ export default class DashboardSettings extends DashboardView {
86
84
}
87
85
}
88
86
89
- async checkServerViews ( ) {
90
- if ( this . viewPreferencesManager ) {
91
- try {
92
- const hasServerViews = await this . viewPreferencesManager . hasServerViews ( this . context . applicationId ) ;
93
- this . setState ( { hasServerViews } ) ;
94
- } catch ( error ) {
95
- console . error ( 'Failed to check server views:' , error ) ;
96
- }
97
- }
98
- }
99
-
100
87
async migrateToServer ( ) {
101
88
if ( ! this . viewPreferencesManager ) {
102
89
this . showNote ( 'ViewPreferencesManager not initialized' ) ;
@@ -115,7 +102,6 @@ export default class DashboardSettings extends DashboardView {
115
102
if ( result . success ) {
116
103
if ( result . viewCount > 0 ) {
117
104
this . showNote ( `Successfully migrated ${ result . viewCount } view(s) to server storage.` ) ;
118
- this . setState ( { hasServerViews : true } ) ;
119
105
} else {
120
106
this . showNote ( 'No views found to migrate.' ) ;
121
107
}
@@ -524,17 +510,6 @@ export default class DashboardSettings extends DashboardView {
524
510
/>
525
511
}
526
512
/>
527
- { this . state . hasServerViews && (
528
- < Field
529
- label = {
530
- < Label
531
- text = "Server Configuration Status"
532
- description = "Views are currently being loaded from server storage."
533
- />
534
- }
535
- input = { < div style = { { color : 'green' , fontWeight : 'bold' } } > ✓ Using Server Storage</ div > }
536
- />
537
- ) }
538
513
</ Fieldset >
539
514
) }
540
515
{ this . state . copyData . show && copyData }
0 commit comments