Skip to content

Commit

Permalink
Hardcode message
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Apr 18, 2024
1 parent 0757ed0 commit 85e8dbc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
6 changes: 5 additions & 1 deletion src/ui/EditorContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ class EditorContainer extends Component {
}
};

const features = window.APP_CONFIG && window.APP_CONFIG["features"];
const features = {
show_global_notification: true,
global_notification_body: "COPY HERE",
global_notification_link: "https://mozilla.org"
};
if (features["show_global_notification"]) {
this.showDialog(NotificationDialog, {
title: "Admin notification",
Expand Down
13 changes: 5 additions & 8 deletions src/ui/projects/ProjectsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,11 @@ class ProjectsPage extends Component {
});
}

const features = window.APP_CONFIG && window.APP_CONFIG["features"];
if (features) {
this.setState({
showGlobalNotification: features["show_global_notification"],
globalNotificationBody: features["global_notification_body"],
globalNotificationLink: features["global_notification_link"]
});
}
this.setState({
showGlobalNotification: true,
globalNotificationBody: "COPY HERE",
globalNotificationLink: "https://mozilla.org"
});
}

onDeleteProject = project => {
Expand Down

0 comments on commit 85e8dbc

Please sign in to comment.