-
+
\ No newline at end of file
diff --git a/maxkey-web-frontend/maxkey-web-mgt-app/src/app/entity/SocialsProvider.ts b/maxkey-web-frontend/maxkey-web-mgt-app/src/app/entity/SocialsProvider.ts
index 0f7e51fac..f909c79a0 100644
--- a/maxkey-web-frontend/maxkey-web-mgt-app/src/app/entity/SocialsProvider.ts
+++ b/maxkey-web-frontend/maxkey-web-mgt-app/src/app/entity/SocialsProvider.ts
@@ -1,19 +1,18 @@
/*
* Copyright [2022] [MaxKey of copyright http://www.maxkey.top]
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
import { BaseEntity } from './BaseEntity';
@@ -24,9 +23,8 @@ export class SocialsProvider extends BaseEntity {
clientId!: String;
clientSecret!: String;
agentId!: String;
- hidden!: String;
+ display!: String;
scanCode!: String;
- switch_hidden: boolean = false;
constructor() {
super();
@@ -40,9 +38,6 @@ export class SocialsProvider extends BaseEntity {
if (this.status == 1) {
this.switch_status = true;
}
- if (this.hidden == 'true') {
- this.switch_hidden = true;
- }
}
override trans(): void {
@@ -51,9 +46,5 @@ export class SocialsProvider extends BaseEntity {
} else {
this.status = 0;
}
-
- if (this.switch_hidden) {
- this.hidden = 'true';
- }
}
}
diff --git a/maxkey-web-frontend/maxkey-web-mgt-app/src/app/routes/config/socials-provider/socials-provider-editer/socials-provider-editer.component.html b/maxkey-web-frontend/maxkey-web-mgt-app/src/app/routes/config/socials-provider/socials-provider-editer/socials-provider-editer.component.html
index c2f80a1be..8218e8b41 100644
--- a/maxkey-web-frontend/maxkey-web-mgt-app/src/app/routes/config/socials-provider/socials-provider-editer/socials-provider-editer.component.html
+++ b/maxkey-web-frontend/maxkey-web-mgt-app/src/app/routes/config/socials-provider/socials-provider-editer/socials-provider-editer.component.html
@@ -67,9 +67,9 @@
- {{ 'mxk.socialsproviders.hidden' | i18n }}
-
-
+ {{ 'mxk.socialsproviders.display' | i18n }}
+
+
diff --git a/maxkey-web-frontend/maxkey-web-mgt-app/src/app/routes/config/socials-provider/socials-provider.component.html b/maxkey-web-frontend/maxkey-web-mgt-app/src/app/routes/config/socials-provider/socials-provider.component.html
index 4d42fe125..d40294359 100644
--- a/maxkey-web-frontend/maxkey-web-mgt-app/src/app/routes/config/socials-provider/socials-provider.component.html
+++ b/maxkey-web-frontend/maxkey-web-mgt-app/src/app/routes/config/socials-provider/socials-provider.component.html
@@ -44,7 +44,7 @@