Bug 32925: Rename isSubmitting with submitting
Asking to do somthing, not asking if it's being done
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 228b9ec2e9)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
parent
9333b9c17b
commit
fb36d1e1a4
|
|
@ -1,4 +1,4 @@
|
|||
import { setError, isSubmitting, submitted } from "../messages";
|
||||
import { setError, submitting, submitted } from "../messages";
|
||||
|
||||
class HttpClient {
|
||||
constructor(options = {}) {
|
||||
|
|
@ -16,7 +16,7 @@ class HttpClient {
|
|||
mark_submitting = false,
|
||||
) {
|
||||
let res, error;
|
||||
if ( mark_submitting) isSubmitting()
|
||||
if ( mark_submitting) submitting()
|
||||
await fetch(this._baseURL + endpoint, {
|
||||
...options,
|
||||
headers: { ...this._headers, ...headers },
|
||||
|
|
|
|||
|
|
@ -22,10 +22,10 @@ export const removeMessages = function () {
|
|||
const { removeMessages } = mainStore;
|
||||
removeMessages();
|
||||
};
|
||||
export const isSubmitting = function () {
|
||||
export const submitting = function () {
|
||||
const mainStore = useMainStore();
|
||||
const { isSubmitting } = mainStore;
|
||||
isSubmitting();
|
||||
const { submitting } = mainStore;
|
||||
submitting();
|
||||
};
|
||||
export const submitted = function () {
|
||||
const mainStore = useMainStore();
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ export const useMainStore = defineStore("main", {
|
|||
}
|
||||
this.displayed_already = true;
|
||||
},
|
||||
isSubmitting(){
|
||||
submitting(){
|
||||
this.is_submitting = true;
|
||||
},
|
||||
submitted(){
|
||||
|
|
|
|||
Loading…
Reference in New Issue