mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Update icons on the map
This commit is contained in:
parent
b4fbe6dbda
commit
732839d586
5 changed files with 6 additions and 4 deletions
|
|
@ -17,6 +17,7 @@ In this release we're introducing family features that allow users to create fam
|
||||||
## Fixed
|
## Fixed
|
||||||
|
|
||||||
- Sign out button works again. #1844
|
- Sign out button works again. #1844
|
||||||
|
- Fixed user deletion bug where user could not be deleted due to counter cache on points.
|
||||||
|
|
||||||
## Changed
|
## Changed
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-square-dashed-mouse-pointer-icon lucide-square-dashed-mouse-pointer"><path d="M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z"/><path d="M5 3a2 2 0 0 0-2 2"/><path d="M19 3a2 2 0 0 1 2 2"/><path d="M5 21a2 2 0 0 1-2-2"/><path d="M9 3h1"/><path d="M9 21h2"/><path d="M14 3h1"/><path d="M3 9v1"/><path d="M21 9v2"/><path d="M3 14v1"/></svg>
|
||||||
|
After Width: | Height: | Size: 623 B |
|
|
@ -75,7 +75,7 @@ export default class extends Controller {
|
||||||
const AddVisitControl = L.Control.extend({
|
const AddVisitControl = L.Control.extend({
|
||||||
onAdd: (map) => {
|
onAdd: (map) => {
|
||||||
const button = L.DomUtil.create('button', 'leaflet-control-button add-visit-button');
|
const button = L.DomUtil.create('button', 'leaflet-control-button add-visit-button');
|
||||||
button.innerHTML = '➕';
|
button.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-map-pin-check-icon lucide-map-pin-check"><path d="M19.43 12.935c.357-.967.57-1.955.57-2.935a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32.197 32.197 0 0 0 .813-.728"/><circle cx="12" cy="10" r="3"/><path d="m16 18 2 2 4-4"/></svg>';
|
||||||
button.title = 'Add a visit';
|
button.title = 'Add a visit';
|
||||||
|
|
||||||
// Style the button with theme-aware styling
|
// Style the button with theme-aware styling
|
||||||
|
|
@ -138,7 +138,7 @@ export default class extends Controller {
|
||||||
|
|
||||||
// Reset button style with theme-aware styling
|
// Reset button style with theme-aware styling
|
||||||
applyThemeToButton(button, this.userThemeValue || 'dark');
|
applyThemeToButton(button, this.userThemeValue || 'dark');
|
||||||
button.innerHTML = '➕';
|
button.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-map-pin-check-icon lucide-map-pin-check"><path d="M19.43 12.935c.357-.967.57-1.955.57-2.935a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32.197 32.197 0 0 0 .813-.728"/><circle cx="12" cy="10" r="3"/><path d="m16 18 2 2 4-4"/></svg>';
|
||||||
|
|
||||||
// Reset cursor
|
// Reset cursor
|
||||||
this.map.getContainer().style.cursor = '';
|
this.map.getContainer().style.cursor = '';
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@ export class VisitsManager {
|
||||||
const SelectionControl = L.Control.extend({
|
const SelectionControl = L.Control.extend({
|
||||||
onAdd: (map) => {
|
onAdd: (map) => {
|
||||||
const button = L.DomUtil.create('button', 'leaflet-bar leaflet-control leaflet-control-custom');
|
const button = L.DomUtil.create('button', 'leaflet-bar leaflet-control leaflet-control-custom');
|
||||||
button.innerHTML = '⚓️';
|
button.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-square-dashed-mouse-pointer-icon lucide-square-dashed-mouse-pointer"><path d="M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z"/><path d="M5 3a2 2 0 0 0-2 2"/><path d="M19 3a2 2 0 0 1 2 2"/><path d="M5 21a2 2 0 0 1-2-2"/><path d="M9 3h1"/><path d="M9 21h2"/><path d="M14 3h1"/><path d="M3 9v1"/><path d="M21 9v2"/><path d="M3 14v1"/></svg>';
|
||||||
button.title = 'Select Area';
|
button.title = 'Select Area';
|
||||||
button.id = 'selection-tool-button';
|
button.id = 'selection-tool-button';
|
||||||
// Style the button with theme-aware styling
|
// Style the button with theme-aware styling
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ class User < ApplicationRecord # rubocop:disable Metrics/ClassLength
|
||||||
devise :database_authenticatable, :registerable,
|
devise :database_authenticatable, :registerable,
|
||||||
:recoverable, :rememberable, :validatable, :trackable
|
:recoverable, :rememberable, :validatable, :trackable
|
||||||
|
|
||||||
has_many :points, dependent: :destroy, counter_cache: true
|
has_many :points, dependent: :destroy
|
||||||
has_many :imports, dependent: :destroy
|
has_many :imports, dependent: :destroy
|
||||||
has_many :stats, dependent: :destroy
|
has_many :stats, dependent: :destroy
|
||||||
has_many :exports, dependent: :destroy
|
has_many :exports, dependent: :destroy
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue