Browse Source

feat: button text change

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/616/head
Pranav C 3 years ago
parent
commit
ba16c2d0a7
  1. 10
      packages/nc-gui/layouts/default.vue

10
packages/nc-gui/layouts/default.vue

@ -40,7 +40,9 @@
slug="nocodb/nocodb" slug="nocodb/nocodb"
show-count show-count
class="mr-3 align-self-center" class="mr-3 align-self-center"
/> >
{{ ghStarText }}
</gh-btns-star>
<a class="caption font-weight-bold ml-1 mr-2 white--text" href="https://docs.nocodb.com" target="_blank">Docs</a> <a class="caption font-weight-bold ml-1 mr-2 white--text" href="https://docs.nocodb.com" target="_blank">Docs</a>
</v-toolbar-items> </v-toolbar-items>
<!-- <template v-if="!isThisMobile "> <!-- <template v-if="!isThisMobile ">
@ -586,6 +588,7 @@ export default {
xTerm xTerm
}, },
data: () => ({ data: () => ({
ghStarText: 'Star',
swaggerOrGraphiqlUrl: null, swaggerOrGraphiqlUrl: null,
showScreensaver: false, showScreensaver: false,
roleIcon: { roleIcon: {
@ -630,8 +633,8 @@ export default {
brandName: 'plugins/brandName', brandName: 'plugins/brandName',
projects: 'project/list', projects: 'project/list',
tabs: 'tabs/list', tabs: 'tabs/list',
sqlMgr: 'sqlMgr/sqlMgr', sqldMgr: 'sqlMgr/sqlMgr',
GetPendingStatus: 'notification/GetPendingStatus', GetPeningStatus: 'notification/GetPendingStatus',
isAuthenticated: 'users/GtrIsAuthenticated', isAuthenticated: 'users/GtrIsAuthenticated',
isAdmin: 'users/GtrIsAdmin', isAdmin: 'users/GtrIsAdmin',
isDocker: 'project/GtrIsDocker', isDocker: 'project/GtrIsDocker',
@ -674,6 +677,7 @@ export default {
mounted() { mounted() {
this.selectedEnv = this.$store.getters['project/GtrActiveEnv'] this.selectedEnv = this.$store.getters['project/GtrActiveEnv']
this.loadProjectInfo() this.loadProjectInfo()
setInterval(() => this.ghStarText = this.ghStarText === 'Star' ? 'Fork' : 'Star', 60000)
}, },
// errorCaptured(err, vm, info) { // errorCaptured(err, vm, info) {
// console.log("errorCaptured", err, vm, info); // console.log("errorCaptured", err, vm, info);

Loading…
Cancel
Save