forked from gchq/CyberChef
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🛂 Adds warning msg, for when config disabled (gchq#455)
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<template> | ||
<div class="error"> | ||
<p> | ||
Error: Configuration has been disabled on this instance. | ||
Please contact your administrator for more information. | ||
</p> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import ErrorHandler from '@/utils/ErrorHandler'; | ||
export default { | ||
name: 'AccessError', | ||
mounted() { | ||
ErrorHandler('Access Error: Config has been disabled on this instance'); | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
.error { | ||
padding: 0.5rem 1rem; | ||
min-width: 20rem; | ||
width: 50%; | ||
margin: 2rem auto; | ||
cursor: default; | ||
text-align: center; | ||
font-weight: bold; | ||
font-size: 1.2rem; | ||
color: var(--warning); | ||
border-radius: var(--curve-factor); | ||
border: 1px dashed var(--warning); | ||
background: var(--background); | ||
} | ||
</style> |