Add edit project flow in anticipation of API method. Ugly Edit button needs to be replaced.

This commit is contained in:
Matthew Aaron Raymer
2023-01-17 16:35:38 +08:00
parent 997093c695
commit 51600b65d7
3 changed files with 59 additions and 0 deletions

View File

@@ -93,6 +93,13 @@
</div>
</div>
</div>
<button
type="button"
class="block w-full text-center text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md"
@click="onEditClick()"
>
Edit
</button>
</div>
<!-- Commit -->
@@ -155,6 +162,15 @@ export default class ProjectViewView extends Vue {
? ""
: localStorage.getItem("projectId");
onEditClick() {
localStorage.setItem("projectId", this.projectId as string);
const route = {
name: "new-edit-project",
};
console.log(route);
this.$router.push(route);
}
expandText() {
this.expanded = true;
}