Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
mah0001 committed May 15, 2024
1 parent a234f4e commit 50dd4f7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions application/views/collections/vue-collections-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ Vue.component('vue-collection', {
}
},
methods: {
pageLink: function(page) {
window.location.href = CI.base_url + '/' + page;
},
showMenu: function(data) {
console.log("showMenu", data);
let e=data.e;
Expand Down Expand Up @@ -167,10 +170,10 @@ Vue.component('vue-collection', {
<div class="d-flex">
<v-tabs background-color="transparent" v-model="active_tab">
<v-tab><v-icon>mdi-text-box</v-icon> <a :href="site_base_url + '/editor'">{{$t("projects")}}</a></v-tab>
<v-tab active><v-icon>mdi-folder-text</v-icon> <a :href="site_base_url + '/collections'">{{$t("collections")}}</a> </v-tab>
<v-tab @click="pageLink('projects')"><v-icon>mdi-text-box</v-icon> <a :href="site_base_url + '/editor'">{{$t("projects")}}</a></v-tab>
<v-tab @click="pageLink('collections')" active><v-icon>mdi-folder-text</v-icon> <a :href="site_base_url + '/collections'">{{$t("collections")}}</a> </v-tab>
<!--<v-tab>Archives</v-tab>-->
<v-tab><v-icon>mdi-alpha-t-box</v-icon> <a :href="site_base_url + '/templates'">{{$t("templates")}}</a></v-tab>
<v-tab @click="pageLink('templates')"><v-icon>mdi-alpha-t-box</v-icon> <a :href="site_base_url + '/templates'">{{$t("templates")}}</a></v-tab>
</v-tabs>
Expand Down
9 changes: 6 additions & 3 deletions application/views/project/home.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@
<div class="flex-grow-1 flex-shrink-0 mr-auto">
<div class="mb-5">
<v-tabs background-color="transparent">
<v-tab><v-icon>mdi-text-box</v-icon> Projects</v-tab>
<v-tab><v-icon>mdi-folder-text</v-icon> <a href="<?php echo site_url('collections');?>">{{$t("collections")}}</a> </v-tab>
<v-tab @click="pageLink('projects')"><v-icon>mdi-text-box</v-icon> Projects</v-tab>
<v-tab @click="pageLink('collections')"><v-icon>mdi-folder-text</v-icon> <a href="<?php echo site_url('collections');?>">{{$t("collections")}}</a> </v-tab>
<!--<v-tab>Archives</v-tab>-->
<v-tab><v-icon>mdi-alpha-t-box</v-icon> <a href="<?php echo site_url('templates');?>">{{$t("templates")}}</a></v-tab>
<v-tab @click="pageLink('templates')"><v-icon>mdi-alpha-t-box</v-icon> <a href="<?php echo site_url('templates');?>">{{$t("templates")}}</a></v-tab>
</v-tabs>
</div>
</div>
Expand Down Expand Up @@ -739,6 +739,9 @@ class="flex-grow-1 flex-shrink-0"
}
},
methods: {
pageLink: function(page) {
window.location.href = CI.base_url + '/' + page;
},
showProjectMenu (e, projectId) {
e.preventDefault()
this.show_project_menu = false
Expand Down

0 comments on commit 50dd4f7

Please sign in to comment.