Skip to content

Commit

Permalink
alpha.3 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MrVauxs committed Jan 29, 2025
1 parent 8f52eec commit 5a53ef5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](<https://semver.org/spec/v2.0.

## [Unreleased]

## [1.0.0-alpha.3] - 2025-01-29

### Fixed

- Animation Document not being read-only for other users than its creator.
- TourNag message erroring at startup.

## [1.0.0-alpha.2] - 2025-01-29

### Added
Expand Down Expand Up @@ -504,7 +511,8 @@ and this project adheres to [Semantic Versioning](<https://semver.org/spec/v2.0.
- Moved internal structure
- Pre-release versions to be semver compliant

[Unreleased]: https://github.com/MrVauxs/pf2e-graphics/compare/v1.0.0-alpha.2...HEAD
[Unreleased]: https://github.com/MrVauxs/pf2e-graphics/compare/v1.0.0-alpha.3...HEAD
[1.0.0-alpha.3]: https://github.com/MrVauxs/pf2e-graphics/compare/v1.0.0-alpha.2...v1.0.0-alpha.3
[1.0.0-alpha.2]: https://github.com/MrVauxs/pf2e-graphics/compare/v1.0.0-alpha.1...v1.0.0-alpha.2
[1.0.0-alpha.1]: https://github.com/MrVauxs/pf2e-graphics/compare/v1.0.0-alpha...v1.0.0-alpha.1
[1.0.0-alpha]: https://github.com/MrVauxs/pf2e-graphics/compare/v0.9.4...v1.0.0-alpha
Expand Down
5 changes: 4 additions & 1 deletion src/view/AnimationDocument/AnimationDocumentApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export default class AnimationDocumentApp extends SvelteApplication<BasicAppOpti
} catch { }
}

if (this.options.animation.source === 'module') {
if (
this.options.animation.source === 'module'
|| (this.options.animation.source === 'user' && this.options.animation.user !== game.userId)
) {
this.options.readonly = true;
this.options.title = `${i18n('pf2e-graphics.document.title')} (Read-only)`;
}
Expand Down
4 changes: 2 additions & 2 deletions src/view/ChatMessage/TourNag.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
{@const tourDoc = getTourDoc(tour)}
<button
on:click={() => tourDoc.start()}
disabled={tourDoc.status !== 'unstarted'}
class:line-through={tourDoc.status !== 'unstarted'}
disabled={tourDoc?.status !== 'unstarted'}
class:line-through={tourDoc?.status !== 'unstarted'}
>
Yes! I want to learn about the <i>{i18n(tour.title)}</i>.
</button>
Expand Down

0 comments on commit 5a53ef5

Please sign in to comment.