Commit 91d952c 1 parent 85e8dbc commit 91d952c Copy full SHA for 91d952c
File tree 3 files changed +16
-13
lines changed
3 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -46,5 +46,11 @@ configs.isMoz = () => configs.IS_MOZ === "true";
46
46
configs . name = ( ) => ( configs . isMoz ( ) ? "Spoke" : "Scene Editor" ) ;
47
47
configs . longName = ( ) => ( configs . isMoz ( ) ? "Spoke by Mozilla" : "Scene Editor" ) ;
48
48
configs . icon = ( ) => ( configs . isMoz ( ) ? fixBaseAssetsPath ( spokeIcon ) : fixBaseAssetsPath ( editorIcon ) ) ;
49
+ configs . sunset = {
50
+ notification : {
51
+ body : "COPY HERE" ,
52
+ link : "https://www.mozilla.org"
53
+ }
54
+ } ;
49
55
50
56
export default configs ;
Original file line number Diff line number Diff line change @@ -126,16 +126,11 @@ class EditorContainer extends Component {
126
126
}
127
127
} ;
128
128
129
- const features = {
130
- show_global_notification : true ,
131
- global_notification_body : "COPY HERE" ,
132
- global_notification_link : "https://mozilla.org"
133
- } ;
134
- if ( features [ "show_global_notification" ] ) {
129
+ if ( configs . sunset . notification ) {
135
130
this . showDialog ( NotificationDialog , {
136
131
title : "Admin notification" ,
137
- message : features [ "global_notification_body" ] ,
138
- link : features [ "global_notification_link" ] ,
132
+ message : configs . sunset . notification . body ,
133
+ link : configs . sunset . notification . link ,
139
134
onClosed : load ,
140
135
onConfirm : load ,
141
136
onCancel : null
Original file line number Diff line number Diff line change @@ -127,11 +127,13 @@ class ProjectsPage extends Component {
127
127
} ) ;
128
128
}
129
129
130
- this . setState ( {
131
- showGlobalNotification : true ,
132
- globalNotificationBody : "COPY HERE" ,
133
- globalNotificationLink : "https://mozilla.org"
134
- } ) ;
130
+ if ( configs . sunset . notification ) {
131
+ this . setState ( {
132
+ showGlobalNotification : true ,
133
+ globalNotificationBody : configs . sunset . notification . body ,
134
+ globalNotificationLink : configs . sunset . notification . link
135
+ } ) ;
136
+ }
135
137
}
136
138
137
139
onDeleteProject = project => {
You can’t perform that action at this time.
0 commit comments