Selaa lähdekoodia

use separate url for new bubbles

pull/1/head
Jonathan Cobb 5 vuotta sitten
vanhempi
commit
702c0c4c21
3 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. +1
    -1
      src/_helpers/router.js
  2. +2
    -2
      src/account/NetworksPage.vue
  3. +1
    -1
      src/account/NewNetworkPage.vue

+ 1
- 1
src/_helpers/router.js Näytä tiedosto

@@ -61,7 +61,7 @@ export const router = new Router({
},
]
},
{ path: '/bubble/new', component: NewNetworkPage,
{ path: '/new_bubble', component: NewNetworkPage,
children: newNetworkChildren
},
{ path: '/bubble/:id', component: NetworkPage }


+ 2
- 2
src/account/NetworksPage.vue Näytä tiedosto

@@ -22,7 +22,7 @@
</tbody>
</table>
<hr/>
<router-link to="/bubble/new">{{messages.button_label_new_network}}</router-link>
<router-link to="/new_bubble">{{messages.button_label_new_network}}</router-link>
</div>

<div v-if="!networks || networks.length === 0">
@@ -53,7 +53,7 @@
networks (nets) {
if (nets && nets.length) {
if (nets.length === 0) {
this.$router.replace({path: '/bubble/new'});
this.$router.replace({path: '/new_bubble'});
} else if (nets.length === 1 && util.currentUser().admin !== true) {
this.$router.replace({path: '/bubble/' + nets[0].name});
}


+ 1
- 1
src/account/NewNetworkPage.vue Näytä tiedosto

@@ -516,7 +516,7 @@
},
newNodeNotification (nn) {
if (nn && nn.uuid) {
this.$router.push({path:'/bubble', params: {id: nn.networkName}, query: {'status': nn.uuid}});
this.$router.push({path:'/bubble/'+nn.networkName});
}
}
},


Ladataan…
Peruuta
Tallenna