1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-01 16:30:46 +00:00

Hide the dropbox system tiddlers as shadow tiddlers

This commit is contained in:
Jeremy Ruston 2012-10-10 23:01:19 +01:00
parent 149216ff7d
commit b48cbb8673
2 changed files with 5 additions and 5 deletions

View File

@ -26,7 +26,7 @@ exports.startup = function() {
}
if(wikiName) {
$tw.plugins.dropbox.wikiName = wikiName;
$tw.wiki.addTiddler({title: titleWikiName, text: $tw.plugins.dropbox.wikiName});
$tw.wiki.addTiddler({title: titleWikiName, text: $tw.plugins.dropbox.wikiName},true);
// Load tiddlers
$tw.plugins.dropbox.loadTiddlerFiles("/" + $tw.plugins.dropbox.wikiName + "/tiddlers",function() {
console.log("Loaded all tiddlers",$tw.wiki.tiddlers);

View File

@ -37,7 +37,7 @@ $tw.plugins.dropbox.login = function() {
return $tw.plugins.dropbox.showError(error);
}
// Mark us as logged in
$tw.wiki.addTiddler({title: titleIsLoggedIn, text: "yes"});
$tw.wiki.addTiddler({title: titleIsLoggedIn, text: "yes"},true);
// Get user information
$tw.plugins.dropbox.getUserInfo(function() {
// Invoke any dropbox-startup modules
@ -58,7 +58,7 @@ $tw.plugins.dropbox.getUserInfo = function(callback) {
}
$tw.plugins.dropbox.userInfo = userInfo;
// Save the username
$tw.wiki.addTiddler({title: titleUserName, text: userInfo.name});
$tw.wiki.addTiddler({title: titleUserName, text: userInfo.name},true);
callback();
});
};
@ -71,7 +71,7 @@ $tw.plugins.dropbox.logout = function() {
}
// Mark us as logged out
$tw.wiki.deleteTiddler(titleUserName);
$tw.wiki.addTiddler({title: titleIsLoggedIn, text: "no"});
$tw.wiki.addTiddler({title: titleIsLoggedIn, text: "no"},true);
});
};
@ -217,7 +217,7 @@ exports.startup = function() {
return;
}
// Mark us as not logged in
$tw.wiki.addTiddler({title: titleIsLoggedIn, text: "no"});
$tw.wiki.addTiddler({title: titleIsLoggedIn, text: "no"},true);
// Initialise Dropbox for sandbox access
$tw.plugins.dropbox.client = new Dropbox.Client({key: apiKey, sandbox: true});
// Use the basic redirection authentication driver