feat: Add popup message on sync error or warning
This commit is contained in:
1 parent
df7381f679
commit
4b5b5d7aca
3 files changed
+157
-44
No files matched your search
+5
-4
@@ -1,4 +1,4 @@
|
||||
|
||||
"""Perforce Addon Settings Module."""
|
||||
from typing import List
|
||||
|
||||
from ayon_server.settings import BaseSettingsModel, SettingsField
|
||||
@@ -13,14 +13,15 @@ DEFAULT_VALUES = {
|
||||
|
||||
|
||||
class HostItemModel(BaseSettingsModel):
|
||||
"""Host item model for Perforce settings."""
|
||||
_layout = "compact"
|
||||
name: str = SettingsField(title="Host name")
|
||||
bypass: bool = SettingsField(title="Bypass permission")
|
||||
name: str = SettingsField("", title="Host name")
|
||||
bypass: bool = SettingsField(False, title="Bypass permission")
|
||||
|
||||
|
||||
class PerforceSettings(BaseSettingsModel):
|
||||
"""Perforce project settings."""
|
||||
enabled: bool = SettingsField(default=True)
|
||||
enabled: bool = SettingsField(True)
|
||||
hosts: List[HostItemModel] = SettingsField(
|
||||
default_factory=list,
|
||||
title="Hosts",
|
||||
|
||||
Reference in new issue
Block a user