diff --git a/resources/js/components/SMMastHead.vue b/resources/js/components/SMMastHead.vue index e232127..4c3d0b3 100644 --- a/resources/js/components/SMMastHead.vue +++ b/resources/js/components/SMMastHead.vue @@ -3,6 +3,13 @@

{{ title }}

+ + {{ props.backTitle }}
import { useRoute } from "vue-router"; -import SMButton from "./SMButton.vue"; -import SMInput from "./SMInput.vue"; -defineProps({ +const props = defineProps({ title: { type: String, required: true, }, + backLink: { + type: Object, + default: () => { + return null; + }, + required: false, + }, + backTitle: { + type: String, + default: "Back", + required: false, + }, }); const tabGroups = [ @@ -67,6 +84,24 @@ const tabs = () => { margin-top: 32px; margin-bottom: 32px; } + + .back, + .back:visited { + display: flex; + color: rgb(255, 255, 255, 0.75); + margin-top: -24px; + margin-bottom: 32px; + font-size: 80%; + text-decoration: none; + + &:hover { + color: rgb(255, 255, 255, 1); + } + + ion-icon { + margin-right: 4px; + } + } } .tabs {