config json cell: add auto refresh capability (#17229)
This commit is contained in:
parent
ae0741b0a0
commit
12659ae52e
|
@ -980,6 +980,10 @@ class ConfigJsonCell(JsonCellBase):
|
|||
def set_variant(self, variant):
|
||||
self.key = variant
|
||||
|
||||
@property
|
||||
def ajax_refresh(self):
|
||||
return settings.JSON_CELL_TYPES[self.key].get('auto_refresh', None)
|
||||
|
||||
@property
|
||||
def url(self):
|
||||
return settings.JSON_CELL_TYPES[self.key]['url']
|
||||
|
|
Loading…
Reference in New Issue