mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-25 18:34:36 +00:00
Cleanup log spam in TerritoryPatternsModal (#1269)
## Description: Cleanup log spam in TerritoryPatternsModal ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors
This commit is contained in:
@@ -68,6 +68,7 @@ export class TerritoryPatternsModal extends LitElement {
|
||||
this.flares = flares;
|
||||
}
|
||||
}
|
||||
this.checkPatternPermission(this.roles);
|
||||
this.requestUpdate();
|
||||
}
|
||||
|
||||
@@ -76,7 +77,6 @@ export class TerritoryPatternsModal extends LitElement {
|
||||
for (const key in patterns) {
|
||||
const patternData = patterns[key];
|
||||
const roleGroup: string[] | string | undefined = patternData.role_group;
|
||||
console.log(`pattern:${key}`);
|
||||
if (
|
||||
this.flares.includes("pattern:*") ||
|
||||
this.flares.includes(`pattern:${key}`)
|
||||
@@ -237,7 +237,6 @@ export class TerritoryPatternsModal extends LitElement {
|
||||
|
||||
render() {
|
||||
this.resetLockedPatterns();
|
||||
this.checkPatternPermission(this.roles);
|
||||
return html`
|
||||
${this.renderTooltip()}
|
||||
<o-modal
|
||||
|
||||
Reference in New Issue
Block a user