-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue 1650 add advisory message bar for staging environment
- add advisory message component and template - added advisory message bar to application template - updated client environment with getFeatureFlagShowSandboxWarning function setting FEATURE_FLAG_SHOW_SANDBOX_WARNING env var
- Loading branch information
1 parent
b870483
commit 53ccc93
Showing
12 changed files
with
71 additions
and
399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Component from '@ember/component'; | ||
import { tracked } from '@glimmer/tracking'; | ||
import ENV from 'labs-zap-search/config/environment'; | ||
|
||
export default class AdvisoryMessageBarComponent extends Component { | ||
@tracked | ||
showSandboxWarningOn = ENV.featureFlagShowSandboxWarning; | ||
|
||
// @argument | ||
message = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import Component from '@glimmer/component'; | ||
import { tracked } from '@glimmer/tracking'; | ||
import config from 'client/config/environment'; | ||
|
||
export default class ApplicationComponent extends Component { | ||
@tracked | ||
showSandboxWarningOn = config.featureFlagShowSandboxWarning; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.advisory-message { | ||
background-color: #D96B27; | ||
padding: 0.25rem 1rem; | ||
border: 1px solid rgba(217, 107, 39, 0.25); | ||
border-radius: 0; | ||
position: relative; | ||
text-align: center; | ||
|
||
p { | ||
margin: 0; | ||
color: #FFFFFF; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="advisory-message"> | ||
<p> | ||
{{this.message}} | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6928,6 +6928,11 @@ dot-prop@^4.1.0: | |
dependencies: | ||
is-obj "^1.0.0" | ||
|
||
dotenv@^4.0.0: | ||
version "4.0.0" | ||
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-4.0.0.tgz#864ef1379aced55ce6f95debecdce179f7a0cd1d" | ||
integrity sha512-XcaMACOr3JMVcEv0Y/iUM2XaOsATRZ3U1In41/1jjK6vJZ2PZbQ1bzCG8uvaByfaBpl9gqc9QWJovpUGBXLLYQ== | ||
|
||
duplexer2@~0.1.4: | ||
version "0.1.4" | ||
resolved "https://registry.yarnpkg.com/duplexer2/-/duplexer2-0.1.4.tgz#8b12dab878c0d69e3e7891051662a32fc6bddcc1" | ||
|
@@ -7329,6 +7334,15 @@ [email protected]: | |
chalk "^2.3.0" | ||
semver "^5.5.0" | ||
|
||
[email protected]: | ||
version "2.0.0" | ||
resolved "https://registry.yarnpkg.com/ember-cli-dotenv/-/ember-cli-dotenv-2.0.0.tgz#2c09fc5f8b60f690c9e02428b4f4e3f0b8c64421" | ||
integrity sha512-cDdOlw4dvkTLwoKulbSlOOfKahfaAWpRLWpRl9LZV/CS4HEKEI2iH+hpav8TH98ri/4EWDEINtaNnhYAUL3MXQ== | ||
dependencies: | ||
dotenv "^4.0.0" | ||
ember-cli-babel "^6.6.0" | ||
minimist "^1.2.0" | ||
|
||
ember-cli-eslint@^5.1.0: | ||
version "5.1.0" | ||
resolved "https://registry.yarnpkg.com/ember-cli-eslint/-/ember-cli-eslint-5.1.0.tgz#acdb9b072911e04b07c313b610f514db4086d21a" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.