mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-09-04 17:23:25 +00:00
FIX - allow apps to move across the dock
This commit is contained in:
@@ -76,7 +76,8 @@ describe('app store', () => {
|
||||
const apps = useAppStoreStore()
|
||||
apps.hydrate(null)
|
||||
|
||||
apps.moveHomeApp('mail', 'grid', 'grid', 0)
|
||||
const mailIndex = apps.homeLayout.grid.indexOf('mail')
|
||||
apps.moveHomeApp('grid', mailIndex, 'grid', 0)
|
||||
expect(apps.homeLayout.grid[0]).toBe('mail')
|
||||
|
||||
apps.removeHomeApp('mail')
|
||||
|
||||
@@ -94,15 +94,15 @@ export const useAppStoreStore = defineStore('app-store', {
|
||||
this.persist()
|
||||
},
|
||||
moveHomeApp(
|
||||
appId: LaunchablePhoneAppId,
|
||||
from: HomeArea,
|
||||
sourceIndex: number,
|
||||
to: HomeArea,
|
||||
targetIndex: number,
|
||||
): void {
|
||||
this.homeLayout = moveHomeApp(
|
||||
this.homeLayout,
|
||||
appId,
|
||||
from,
|
||||
sourceIndex,
|
||||
to,
|
||||
targetIndex,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user