Properly query files
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
c1277ea2fa
commit
46ce797197
|
@ -26,6 +26,9 @@
|
|||
*/
|
||||
|
||||
use OC\Search\Provider\File;
|
||||
use OCA\Files\AppInfo\Application;
|
||||
|
||||
$app = \OC::$server->query(Application::class);
|
||||
|
||||
// required for translation purpose
|
||||
// t('Files')
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -31,11 +31,11 @@ Vue.use(VueClipboard)
|
|||
Vue.prototype.t = t
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
// Init Sidebar Service
|
||||
if (!window.OCA.Files) {
|
||||
window.OCA.Files = {}
|
||||
}
|
||||
|
||||
Object.assign(window.OCA.Files, { Sidebar: new Sidebar() })
|
||||
Object.assign(window.OCA.Files.Sidebar, { Tab })
|
||||
|
||||
|
|
|
@ -1096,5 +1096,5 @@ var kt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new Typ
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
window.OCA&&window.OCA.Sharing&&Object.assign(window.OCA.Sharing,{ShareSearch:new wt}),window.OCA&&window.OCA.Sharing&&Object.assign(window.OCA.Sharing,{ExternalLinkActions:new Mt}),Object.assign(window.OCA.Sharing,{ShareTabSections:new kt}),window.addEventListener("DOMContentLoaded",(function(){OCA.Files&&OCA.Files.Sidebar&&OCA.Files.Sidebar.registerTab(new OCA.Files.Sidebar.Tab("sharing",gt))}))}]);
|
||||
window.OCA.Sharing||(window.OCA.Sharing={}),Object.assign(window.OCA.Sharing,{ShareSearch:new wt}),Object.assign(window.OCA.Sharing,{ExternalLinkActions:new Mt}),Object.assign(window.OCA.Sharing,{ShareTabSections:new kt}),window.addEventListener("DOMContentLoaded",(function(){OCA.Files&&OCA.Files.Sidebar&&OCA.Files.Sidebar.registerTab(new OCA.Files.Sidebar.Tab("sharing",gt))}))}]);
|
||||
//# sourceMappingURL=files_sharing_tab.js.map
|
File diff suppressed because one or more lines are too long
|
@ -26,14 +26,12 @@ import ExternalLinkActions from './services/ExternalLinkActions'
|
|||
|
||||
import TabSections from './services/TabSections'
|
||||
|
||||
if (window.OCA && window.OCA.Sharing) {
|
||||
// Init Sharing Tab Service
|
||||
if (!window.OCA.Sharing) {
|
||||
window.OCA.Sharing = {}
|
||||
}
|
||||
Object.assign(window.OCA.Sharing, { ShareSearch: new ShareSearch() })
|
||||
}
|
||||
|
||||
if (window.OCA && window.OCA.Sharing) {
|
||||
Object.assign(window.OCA.Sharing, { ExternalLinkActions: new ExternalLinkActions() })
|
||||
}
|
||||
|
||||
Object.assign(window.OCA.Sharing, { ShareTabSections: new TabSections() })
|
||||
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
|
|
Loading…
Reference in New Issue