mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-02-08 20:44:45 +00:00
Merge pull request #15 from discourse/fix_back_button
FIX: Ensure that back button always redirects to the index page
This commit is contained in:
commit
915657b8cd
@ -96,8 +96,9 @@ export default Ember.Controller.extend({
|
||||
this.set('everEditing', false);
|
||||
},
|
||||
|
||||
goBack() {
|
||||
history.back();
|
||||
goHome() {
|
||||
this.set('selectedQueryId', null);
|
||||
this.transitionToRoute('adminPlugins.explorer');
|
||||
},
|
||||
|
||||
resetParams() {
|
||||
|
@ -34,7 +34,7 @@
|
||||
{{#if editing}}
|
||||
<div class="name">
|
||||
<div class="previous">
|
||||
{{d-button action="goBack" icon="chevron-left" class="no-text btn-med"}}
|
||||
{{d-button action="goHome" icon="chevron-left" class="no-text btn-med"}}
|
||||
</div>
|
||||
{{text-field value=selectedItem.name}}
|
||||
</div>
|
||||
@ -44,7 +44,7 @@
|
||||
{{else}}
|
||||
<div class="name">
|
||||
<div class="previous">
|
||||
{{d-button action="goBack" icon="chevron-left" class="no-text btn-med"}}
|
||||
{{d-button action="goHome" icon="chevron-left" class="no-text btn-med"}}
|
||||
</div>
|
||||
<h2>{{selectedItem.name}}</h2>
|
||||
{{d-button action="editName" icon="pencil" class="no-text btn-small"}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user