forked from jsnbuchanan/crowd-funder-for-time-pwa
Add edit project flow in anticipation of API method. Ugly Edit button needs to be replaced.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user