Create back button to get out of edit screen
This commit is contained in:
parent
56b1358f0a
commit
5beb684b12
|
@ -9,6 +9,11 @@
|
||||||
Submit another edit
|
Submit another edit
|
||||||
</translate>
|
</translate>
|
||||||
</button>
|
</button>
|
||||||
|
<button class="ui button" @click="goBack">
|
||||||
|
<translate translate-context="Content/Library/Button.Label">
|
||||||
|
Go back
|
||||||
|
</translate>
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
|
|
||||||
|
@ -127,6 +132,11 @@
|
||||||
<translate v-if="canEdit" key="1" translate-context="Content/Library/Button.Label/Verb">Submit and apply edit</translate>
|
<translate v-if="canEdit" key="1" translate-context="Content/Library/Button.Label/Verb">Submit and apply edit</translate>
|
||||||
<translate v-else key="2" translate-context="Content/Library/Button.Label/Verb">Submit suggestion</translate>
|
<translate v-else key="2" translate-context="Content/Library/Button.Label/Verb">Submit suggestion</translate>
|
||||||
</button>
|
</button>
|
||||||
|
<button class="ui right floated button" @click="goBack">
|
||||||
|
<translate translate-context="Content/Library/Button.Label">
|
||||||
|
Go back
|
||||||
|
</translate>
|
||||||
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -243,6 +253,9 @@ export default {
|
||||||
self.isLoading = false
|
self.isLoading = false
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
},
|
||||||
|
goBack() {
|
||||||
|
return this.$router.go(-1)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
Loading…
Reference in New Issue