mirror of
https://github.com/open-webui/open-webui
synced 2024-11-25 05:18:15 +00:00
refac: disable sortable on mobile
This commit is contained in:
parent
6bd7c20fbb
commit
6758f3d390
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
import { onMount, getContext, tick } from 'svelte';
|
import { onMount, getContext, tick } from 'svelte';
|
||||||
|
|
||||||
import { WEBUI_NAME, modelfiles, models, settings, user } from '$lib/stores';
|
import { WEBUI_NAME, mobile, models, settings, user } from '$lib/stores';
|
||||||
import { addNewModel, deleteModelById, getModelInfos, updateModelById } from '$lib/apis/models';
|
import { addNewModel, deleteModelById, getModelInfos, updateModelById } from '$lib/apis/models';
|
||||||
|
|
||||||
import { deleteModel } from '$lib/apis/ollama';
|
import { deleteModel } from '$lib/apis/ollama';
|
||||||
@ -170,6 +170,7 @@
|
|||||||
console.log(localModelfiles);
|
console.log(localModelfiles);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!$mobile) {
|
||||||
// SortableJS
|
// SortableJS
|
||||||
sortable = new Sortable(document.getElementById('model-list'), {
|
sortable = new Sortable(document.getElementById('model-list'), {
|
||||||
animation: 150,
|
animation: 150,
|
||||||
@ -178,6 +179,7 @@
|
|||||||
positionChangeHanlder();
|
positionChangeHanlder();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user