Browse Source

Added Project New Button

pull/5/head
Matthew Aaron Raymer 2 years ago
parent
commit
41d8df2238
  1. 18
      src/views/ProjectsView.vue

18
src/views/ProjectsView.vue

@ -22,6 +22,7 @@
<!-- New Project --> <!-- New Project -->
<button <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" 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> <fa icon="plus" class="fa-fw"></fa>
</button> </button>
@ -87,3 +88,20 @@
</ul> </ul>
</section> </section>
</template> </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>

Loading…
Cancel
Save