mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Updated how suggestions work and display
- Always showing suggested tab in tablist - Fixed issue with contextmenu going all wonky when opened on suggested elements
This commit is contained in:
@@ -843,7 +843,7 @@ router.route('/api/conf/:channel_name').get(function(req, res) {
|
||||
conf.userpass = false;
|
||||
}
|
||||
var to_return = error.no_error;
|
||||
to_return.results = conf;
|
||||
to_return.results = [conf];
|
||||
res.status(200).send(JSON.stringify(to_return));
|
||||
} else if(docs.length > 0 && docs[0].userpass != "" && docs[0].userpass != undefined){
|
||||
res.status(403).send(JSON.stringify(error.not_authenticated));
|
||||
@@ -926,7 +926,7 @@ router.route('/api/conf/:channel_name').post(function(req, res) {
|
||||
}
|
||||
updateTimeout(guid, res, authorized, "POST", function(err, docs) {
|
||||
var to_return = error.no_error;
|
||||
to_return.results = conf;
|
||||
to_return.results = [conf];
|
||||
res.status(200).send(JSON.stringify(to_return));
|
||||
});
|
||||
} else if(docs.length > 0 && docs[0].userpass != userpass) {
|
||||
|
||||
Reference in New Issue
Block a user