Format TimetrackAccount related things

This commit is contained in:
Marcel Schwarz 2020-07-21 21:59:44 +02:00
parent 286d1c7fda
commit ebd5493e46
3 changed files with 162 additions and 168 deletions

View File

@ -38,6 +38,7 @@
</template>
<script>
import {baseUri} from "../variables";
export default {
name: "CreateTimeTrackAccount",
data: () => ({

View File

@ -43,17 +43,11 @@ export default {
}
};
accountxhttp.open("DELETE", selfLink, false);
accountxhttp.setRequestHeader(
"Authorization",
sessionStorage.getItem("jwt")
);
accountxhttp.setRequestHeader("Authorization", sessionStorage.getItem("jwt"));
accountxhttp.send(null);
},
editTimeTrackAccount(selfLink) {
sessionStorage.setItem("timeTrackAccountEditSelfLink", selfLink);
this.$router.push("/edittimetrackaccount");
},
createTimeTrackAccount() {
@ -80,7 +74,6 @@ export default {
);
accountxhttp.setRequestHeader("Authorization", sessionStorage.getItem("jwt"));
accountxhttp.send(null);
this.timeTrackAccounts = timeTrackAccountsTMP;