2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FEATURE: allows to define a dissmiss duration on global notices (#8715)

This commit also adds more documentation to various options and defines a 1 week duration for IE global notice dismiss duration.
This commit is contained in:
Joffrey JAFFEUX 2020-01-15 09:02:28 +01:00 committed by GitHub
parent ec1aeb8a55
commit f4744193bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 5 deletions

View file

@ -8,7 +8,7 @@ function initializeInternetExplorerDeprecation(api) {
api.addGlobalNotice(
I18n.t("discourse_internet_explorer.deprecation_warning"),
"deprecate-internet-explorer",
{ dismissable: true }
{ dismissable: true, dismissDuration: moment.duration(1, "week") }
);
}
}