Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dashboard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
dashboard
Commits
7bf884b3
Commit
7bf884b3
authored
1 year ago
by
Konrad Mohrfeldt
Browse files
Options
Downloads
Patches
Plain Diff
refactor: remove last-remaining use of AuthWall component
parent
5b3ad220
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Pages/EmissionManager.vue
+2
-4
2 additions, 4 deletions
src/Pages/EmissionManager.vue
src/components/AuthWall.vue
+0
-29
0 additions, 29 deletions
src/components/AuthWall.vue
with
2 additions
and
33 deletions
src/Pages/EmissionManager.vue
+
2
−
4
View file @
7bf884b3
...
...
@@ -17,7 +17,7 @@
</div>
</
template
>
<
auth-wall
v-else-if=
"selectedShow"
class=
"tw-flex-1 tw-flex tw-flex-col"
>
<
div
v-else-if=
"selectedShow"
class=
"tw-flex-1 tw-flex tw-flex-col"
>
<b-alert
class=
"tw-flex-none"
:variant=
"conflictCount > 0 ? 'danger' : 'success'"
...
...
@@ -109,7 +109,7 @@
@
conflict=
"enterConflictMode"
@
update=
"loadTimeslots()"
/>
</
auth-wall
>
</
div
>
</div>
</template>
...
...
@@ -125,7 +125,6 @@ import fullCalendarInteractionPlugin from '@fullcalendar/interaction'
import
modalEmissionManagerCreate
from
'
@/components/emissions/ModalCreate.vue
'
import
modalEmissionManagerResolve
from
'
@/components/emissions/ModalResolve.vue
'
import
modalEmissionManagerEdit
from
'
@/components/emissions/ModalEdit.vue
'
import
AuthWall
from
'
@/components/AuthWall.vue
'
import
prettyDate
from
'
@/mixins/prettyDate
'
import
ServerErrors
from
'
@/components/ServerErrors.vue
'
import
{
getISODateString
}
from
'
@/utilities
'
...
...
@@ -146,7 +145,6 @@ export default {
PageHeader
,
ServerErrors
,
FullCalendar
,
AuthWall
,
'
app-modalEmissionManagerCreate
'
:
modalEmissionManagerCreate
,
'
app-modalEmissionManagerResolve
'
:
modalEmissionManagerResolve
,
'
app-modalEmissionManagerEdit
'
:
modalEmissionManagerEdit
,
...
...
This diff is collapsed.
Click to expand it.
src/components/AuthWall.vue
deleted
100644 → 0
+
0
−
29
View file @
5b3ad220
<
template
>
<div
v-if=
"authStore.steeringUser"
class=
"tw-w-full"
>
<slot
/>
</div>
<div
v-else
class=
"tw-w-full tw-text-center"
>
{{
t
(
'
loading
'
)
}}
</div>
</
template
>
<
script
setup
>
import
{
useAuthStore
}
from
'
@/stores/auth
'
import
{
watchEffect
}
from
'
vue
'
import
{
useRouter
}
from
'
vue-router
'
import
{
useToast
}
from
'
vue-toast-notification
'
import
{
useI18n
}
from
'
@/i18n
'
const
router
=
useRouter
()
const
authStore
=
useAuthStore
()
const
toast
=
useToast
()
const
{
t
}
=
useI18n
()
watchEffect
(()
=>
{
if
(
authStore
.
steeringUser
&&
!
authStore
.
isSuperuser
)
{
toast
.
error
(
t
(
'
auth.permissionError
'
))
router
.
push
({
name
:
'
home
'
})
}
})
</
script
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment