@saooti/octopus-sdk 38.1.4 → 38.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "38.1.4",
3
+ "version": "38.1.5",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -60,9 +60,9 @@
60
60
  </template>
61
61
  </template>
62
62
  <hr />
63
- <button class="octopus-dropdown-item" @click="logoutFunction">
63
+ <a class="octopus-dropdown-item" @click="logoutFunction" >
64
64
  {{ $t("Logout") }}
65
- </button>
65
+ </a>
66
66
  </template>
67
67
  <router-link class="octopus-dropdown-item" to="/main/pub/contact">
68
68
  {{ $t("Contact") }}
@@ -72,7 +72,7 @@
72
72
  </template>
73
73
 
74
74
  <script lang="ts">
75
- import octopusApi from "@saooti/octopus-api";
75
+ import crudApi from "@/api/classicCrud";
76
76
  import { state } from "../../stores/ParamSdkStore";
77
77
  import ClassicPopover from "../misc/ClassicPopover.vue";
78
78
  import { useAuthStore } from "@/stores/AuthStore";
@@ -151,7 +151,7 @@ export default defineComponent({
151
151
  methods:{
152
152
  async logoutFunction(){
153
153
  try {
154
- await octopusApi.postDataPublic(4, '/logout', undefined);
154
+ await crudApi.postData(4, '/logout', undefined);
155
155
  this.$router.push('/');
156
156
  } catch (error) {
157
157
  //Do nothing
@@ -37,7 +37,7 @@
37
37
  </template>
38
38
 
39
39
  <script lang="ts">
40
- import octopusApi from "@saooti/octopus-api";
40
+ import crudApi from "@/api/classicCrud";
41
41
  import { state } from "../../stores/ParamSdkStore";
42
42
  import { useGeneralStore } from "@/stores/GeneralStore";
43
43
  import { mapState } from "pinia";
@@ -59,7 +59,7 @@ export default defineComponent({
59
59
  methods:{
60
60
  async logoutFunction(){
61
61
  try {
62
- await octopusApi.postDataPublic(4, '/logout', undefined);
62
+ await crudApi.postData(4, '/logout', undefined);
63
63
  this.$router.push('/');
64
64
  } catch (error) {
65
65
  //Do nothing