- risolto problema sull'attivazione del Circuito ITA. non arrivava il messaggio
- sistemazioni sul profilo
This commit is contained in:
@@ -7345,6 +7345,7 @@ export const tools = {
|
||||
},
|
||||
setRequestCircuit(
|
||||
$q: any,
|
||||
t: any,
|
||||
username: string,
|
||||
circuitname: string,
|
||||
value: boolean,
|
||||
@@ -7368,6 +7369,14 @@ export const tools = {
|
||||
msg = t('circuit.askedto', { circuitname });
|
||||
}
|
||||
|
||||
if (!!res.update?.profile) {
|
||||
if (res.update?.profile) {
|
||||
Object.keys(res.update.profile).forEach((key: string) => {
|
||||
userStore.my.profile[key] = res.update.profile[key];
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// ADD to req
|
||||
userStore.my.profile.asked_circuits.push(res.circuit);
|
||||
tools.showPositiveNotif($q, msg);
|
||||
@@ -8020,7 +8029,7 @@ export const tools = {
|
||||
} else if (cmd === shared_consts.CIRCUITCMD.SET) {
|
||||
tools.addToMyCircuits($q, username, dest);
|
||||
} else if (cmd === shared_consts.CIRCUITCMD.REQ) {
|
||||
tools.setRequestCircuit($q, username, dest, value);
|
||||
tools.setRequestCircuit($q, t, username, dest, value);
|
||||
} else if (cmd === shared_consts.CIRCUITCMD.CANCEL_REQ) {
|
||||
tools.cancelReqCircuit($q, username, dest);
|
||||
} else if (cmd === shared_consts.CIRCUITCMD.REFUSE_REQ) {
|
||||
|
||||
Reference in New Issue
Block a user