readd: server tags

This commit is contained in:
lollipopkit
2024-02-20 15:40:14 +08:00
parent f4bf7a4d5e
commit 1a64dc5cba
10 changed files with 76 additions and 62 deletions

View File

@@ -217,7 +217,7 @@ class _ServerEditPageState extends State<ServerEditPage> {
TagEditor(
tags: _tags,
onChanged: (p0) => _tags = p0,
allTags: [...Pros.server.tags],
allTags: [...Pros.server.tags.value],
onRenameTag: Pros.server.renameTag,
),
_buildAuth(),

View File

@@ -81,7 +81,7 @@ class _ServerPageState extends State<ServerPage>
Widget _buildBody() {
final child = Consumer<ServerProvider>(
builder: (_, pro, __) {
if (!pro.tags.contains(_tag)) {
if (!pro.tags.value.contains(_tag)) {
_tag = null;
}
if (pro.serverOrder.isEmpty) {