Added Project New Button

This commit is contained in:
Matthew Aaron Raymer
2023-01-09 16:05:45 +08:00
parent 71546ea605
commit 41d8df2238

View File

@@ -22,6 +22,7 @@
<!-- New Project -->
<button
class="fixed right-6 bottom-24 text-center text-4xl leading-none bg-blue-600 text-white w-14 py-2.5 rounded-full"
@click="onClickNewProject()"
>
<fa icon="plus" class="fa-fw"></fa>
</button>
@@ -87,3 +88,20 @@
</ul>
</section>
</template>
<script lang="ts">
import { Options, Vue } from "vue-class-component";
@Options({
components: {},
})
export default class ProjectsView extends Vue {
onClickNewProject(): void {
const route = {
name: "new-edit-project",
};
console.log(route);
this.$router.push(route);
}
}
</script>