Create three panel view (#26)

* Create three panel view
This commit is contained in:
Jonas Plum
2022-01-20 10:08:37 +01:00
committed by GitHub
parent a152b6663b
commit 8e8a7ec2a2
9 changed files with 184 additions and 92 deletions

View File

@@ -148,6 +148,7 @@
<script lang="ts">
import Vue from "vue";
import AppLink from "./components/AppLink.vue";
import router from "vue-router";
export default Vue.extend({
name: "App",
@@ -164,7 +165,7 @@ export default Vue.extend({
{ icon: "mdi-cogs", name: "User Data", to: "UserDataList", role: "admin:userdata:write" },
{ icon: "mdi-format-list-checks", name: "Jobs", to: "JobList", role: "admin:job:write" },
],
mini: false,
mini: true,
goto: "",
snackbar: false,
@@ -214,11 +215,12 @@ export default Vue.extend({
}
this.$router.push({
name: "Ticket",
params: { id: this.goto.toString(), type: "-" }
params: { id: this.goto.toString() }
});
},
openTicketList: function (type: string) {
this.$router.push({ name: "TicketList", params: { type: type } })
(this.$router as any).history.current = router.START_LOCATION;
this.$router.push({ name: "TicketList", params: { type: type } });
},
hasRole: function (s: string) {
if (this.$store.state.user.roles) {