MCPcopy Index your code
hub / github.com/bugy/script-server / deleteScript

Function deleteScript

web-src/src/admin/store/script-config-module.js:85–100  ·  view source on GitHub ↗
({state})

Source from the content-addressed store, hash-verified

83 },
84
85 deleteScript({state}) {
86 const oldName = state.scriptName;
87
88 return axiosInstance.delete(`admin/scripts/${encodeURIComponent(oldName)}`)
89 .then(() => {
90 router.push({
91 path: `/scripts/`
92 });
93 })
94 .catch(e => {
95 if (e.response.status === 422) {
96 e.userMessage = e.response.data;
97 }
98 throw e;
99 });
100 },
101 },
102 mutations: {
103 RESET(state, scriptName) {

Callers

nothing calls this directly

Calls 2

deleteMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected