Server returns location of lychee
Used for the new server-import dialog
This commit is contained in:
parent
864b317e4c
commit
653511e6c6
@ -23,6 +23,7 @@ var lychee = {
|
|||||||
username: "",
|
username: "",
|
||||||
checkForUpdates: false,
|
checkForUpdates: false,
|
||||||
sorting: "",
|
sorting: "",
|
||||||
|
location: "",
|
||||||
|
|
||||||
dropbox: false,
|
dropbox: false,
|
||||||
dropboxKey: '',
|
dropboxKey: '',
|
||||||
@ -46,6 +47,7 @@ var lychee = {
|
|||||||
lychee.username = data.config.username || '';
|
lychee.username = data.config.username || '';
|
||||||
lychee.sorting = data.config.sorting || '';
|
lychee.sorting = data.config.sorting || '';
|
||||||
lychee.dropboxKey = data.config.dropboxKey || '';
|
lychee.dropboxKey = data.config.dropboxKey || '';
|
||||||
|
lychee.location = data.config.location || '';
|
||||||
}
|
}
|
||||||
|
|
||||||
// No configuration
|
// No configuration
|
||||||
|
@ -42,6 +42,9 @@ class Session extends Module {
|
|||||||
$return['config'] = $this->settings;
|
$return['config'] = $this->settings;
|
||||||
unset($return['config']['password']);
|
unset($return['config']['password']);
|
||||||
|
|
||||||
|
# Path to Lychee for the server-import dialog
|
||||||
|
$return['config']['location'] = LYCHEE;
|
||||||
|
|
||||||
# No login
|
# No login
|
||||||
if ($this->settings['username']===''&&$this->settings['password']==='') $return['config']['login'] = false;
|
if ($this->settings['username']===''&&$this->settings['password']==='') $return['config']['login'] = false;
|
||||||
else $return['config']['login'] = true;
|
else $return['config']['login'] = true;
|
||||||
@ -59,6 +62,7 @@ class Session extends Module {
|
|||||||
unset($return['config']['sorting']);
|
unset($return['config']['sorting']);
|
||||||
unset($return['config']['dropboxKey']);
|
unset($return['config']['dropboxKey']);
|
||||||
unset($return['config']['login']);
|
unset($return['config']['login']);
|
||||||
|
unset($return['config']['location']);
|
||||||
|
|
||||||
# Logged out
|
# Logged out
|
||||||
$return['loggedIn'] = false;
|
$return['loggedIn'] = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user